import pandas as pd
import matplotlib.pyplot as plt
data = {
    '学科': ['语文', '数学', '英语', '物理', '化学'],
    '成绩': [92, 88, 95, 78, 85]
}
df = pd.DataFrame(data)
plt.bar(x=df['学科'],height=df['成绩'],color='red',edgecolor='black')
# plt.barh
plt.rcParams['font.sans-serif']='SimHei'
plt.title('各科成绩表')
plt.show()